<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<c:url var="ico_password" value="images/icons/password_icon.png" />
<c:url var="ico_profile" value="images/icons/profile_icon.png" />

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Modification du profil - <fmt:message key="appTitle" />
</title>
<link rel="stylesheet" type="text/css"
	href='<c:url value="/styles/base.css" />' />
<link rel="stylesheet" type="text/css"
	href='<c:url value="/styles/charte.css" />' />
</head>
<body>

	<div id="global"><jsp:include page="header.jsp" />
		<jsp:include page="menu.jsp" />
		<c:if test="${canChangePwd==false}">
			<c:redirect url="/home.htm" />
		</c:if>
		
		<div id="contenu">
			<h2>
				<img src="${ico_profile }" />
				<fmt:message key="label.update-account" />
			</h2>
			<hr>

			<form:form method="post" commandName="updateAccountForm">
				<table>
					<tr>
						<td><fmt:message key="label.lastname" /> :</td>
						<td><form:input path="lastname" />
						</td>
						<td><form:errors path="lastname" cssClass="errorMsg" />
						</td>

					</tr>
					<tr>
						<td><fmt:message key="label.firstname" /> :</td>
						<td><form:input path="firstname" />
						</td>
						<td><form:errors path="firstname" cssClass="errorMsg" />
						</td>
					</tr>
					<tr>
						<td><fmt:message key="label.mail" /> :</td>
						<td><form:input path="email" />
						</td>
						<td><form:errors path="email" cssClass="errorMsg" />
						</td>
					</tr>
					<tr>
						<td></td>
						<td><input type="submit"
							value="<fmt:message key="button.update" />">
						</td>
						<td></td>
					</tr>
				</table>
				<br>
				<img style="cursor: pointer;" src="${ico_password }" />
				<a href="<c:url value="/change_pwd.htm?account_id=${account_id}"/>"><fmt:message
						key="label.change-password" /> ?</a>
			</form:form>
		</div>

		<jsp:include page="footer.jsp" />
	</div>
</body>
</html>